<%--
  Created by IntelliJ IDEA.
  User: zhangyiyi
  Date: 2025/2/18
  Time: 17:13
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--全局变量和局部变量--%>
<%! int nam = 1;%>
<%
    int num = 2;
    nam++;
    num++;
    out.println("num"+num);
    out.println("nam"+nam);
%>

</body>
</html>
